package com.mimosa.common.message;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.mimosa.common.entity.BaseEntity;

/**
 * 消息附件实体类
 * 
 * @author Mr.bai
 * 
 */
@Entity
@Table(name = "T_MESSAGE_ATTACHMENT")
public class TMessageAttachment extends BaseEntity {
	@ManyToOne
	@JoinColumn(name = "messageId", nullable = false)
	private TSiteMessage siteMessage;
	/** 封装好的站内信息对象 */

	private String filePath;
	/** 文件路径 */

	private int fileType;

	/** 附件类型 */

	private String webPath;

	/** 真实文件名 */
	private String realName;

	public String getFilePath() {
		return filePath;
	}

	public TSiteMessage getSiteMessage() {
		return siteMessage;
	}

	public void setSiteMessage(TSiteMessage siteMessage) {
		this.siteMessage = siteMessage;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public int getFileType() {
		return fileType;
	}

	public void setFileType(int fileType) {
		this.fileType = fileType;
	}

	public String getWebPath() {
		return webPath;
	}

	public void setWebPath(String webPath) {
		this.webPath = webPath;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}
}
